﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Interviewer/MasterPageInterviewer.master" AutoEventWireup="true" CodeFile="HiredApplicant.aspx.cs" Inherits="Interviewer_HiredApplicant" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript" src="../Scripts/jquery.js"></script>
    <script type="text/javascript">
        $(function () {
            $('#<%=btnSave.ClientID %>').attr('disabled', true);
            $('#<%=ddlResult.ClientID %>').change(function () {
                if ($('#<%=ddlResult.ClientID %>').val() != "Result of Interview") {
                    $('#<%=btnSave.ClientID %>').attr('disabled', false);
                }
                else {
                    $('#<%=btnSave.ClientID %>').attr('disabled', true);
                }
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentmain" Runat="Server">
    <div id="Main">
        <h2>Result Interview</h2>
        <p class="LineOdd">
            <asp:Label ID="Label1" runat="server" Text="Interview ID:" CssClass="lblTitleCss" Width="150px"></asp:Label>
            <asp:Label ID="txtInterviewID" runat="server" Text="" CssClass="lblTitleCss"  Width="150px"></asp:Label>
        </p>
        <p>
            <asp:Label ID="Label2" runat="server" Text="Vacancy ID:" CssClass="lblTitleCss" Width="150px"></asp:Label>
            <asp:Label ID="txtVacancyID" runat="server" Text="" CssClass="lblTitleCss"  Width="150px"></asp:Label>
        </p>
        <p class="LineOdd">
            <asp:Label ID="Label3" runat="server" Text="ApplicantID ID:" CssClass="lblTitleCss" Width="150px"></asp:Label>
            <asp:Label ID="txtApplicantID" runat="server" Text="" CssClass="lblTitleCss"  Width="150px"></asp:Label>
        </p>
        <p>
            <asp:Label ID="Label4" runat="server" Text="Date Interview:" CssClass="lblTitleCss" Width="150px"></asp:Label>
            <asp:Label ID="txtDate" runat="server" Text="" CssClass="lblTitleCss"  Width="150px"></asp:Label>
        </p>
        <p class="LineOdd">
            <asp:Label ID="Label5" runat="server" Text="Time Interview:" 
                CssClass="lblTitleCss" Width="150px"></asp:Label>
            <asp:Label ID="txtTime" runat="server" CssClass="lblTitleCss"  Width="150px"></asp:Label>
        </p>
        <p>
            <asp:Label ID="Label6" runat="server" Text="Result Interview:" CssClass="lblTitleCss" Width="150px"></asp:Label>
            <asp:DropDownList ID="ddlResult" runat="server" Width="154px">
                <asp:ListItem>Result of Interview</asp:ListItem>
                <asp:ListItem Value="Satisfactory">Satisfactory(Hired)</asp:ListItem>
                <asp:ListItem>UnSatisfactory</asp:ListItem>
            </asp:DropDownList>
        </p>
        <p class="LineOdd">
            <asp:Button ID="btnSave" runat="server" Text="Save" Height="25px" Width="70px" 
                CssClass="btnSearch" onclick="btnSave_Click"/>
            <asp:Button ID="btnBack" runat="server" Text="Back" Height="25px" Width="70px" CssClass="btnSearch" 
                PostBackUrl="~/Interviewer/ApplicantManager.aspx"/>
        </p>
        <p>
            <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
        </p>
    </div>
</asp:Content>

